import request from '@/utils/request'

// 查询列表
export function listCompany(query) {
  return request({
    url: '/company/list',
    method: 'get',
    params: query
  })
}


// 查询all列表
export function allListCompany(query) {
  return request({
    url: '/company/listAll',
    method: 'get',
    params: query
  })
}


// 查询详细
export function getInfo(id) {
  return request({
    url: '/company/' + id,
    method: 'get'
  })
}

// 新增
export function addCompany(data) {
  return request({
    url: '/company',
    method: 'post',
    data: data
  })
}

// 修改
export function updateCompany(data) {
  return request({
    url: '/company',
    method: 'put',
    data: data
  })
}

// 删除
export function delCompany(id) {
  return request({
    url: '/company/' + id,
    method: 'delete'
  })
}